package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.DeviceCategory;
import com.zhijian.medical.entity.vo.request.DeviceCategorySearchVo;
import com.zhijian.medical.entity.vo.response.DeviceCategoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 设备品类 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-13 15:44:03
 */
public interface DeviceCategoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceCategory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceCategoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param deviceCategory
     * @return
     */
    Long insert(DeviceCategory deviceCategory);

    /**
     * 更改
     *
     * @param deviceCategory
     * @return
     */
    boolean update(DeviceCategory deviceCategory);

    /**
     * 总数
     *
     * @param deviceCategorySearchVo
     * @return
     */
    Integer count(DeviceCategorySearchVo deviceCategorySearchVo);

    /**
     * 列表
     *
     * @param deviceCategorySearchVo
     * @return
     */
    List<DeviceCategoryVo> selectList(DeviceCategorySearchVo deviceCategorySearchVo);

    /**
     * 分页展示
     *
     * @param deviceCategorySearchVo
     * @return
     */
    Page<DeviceCategoryVo> selectPage(DeviceCategorySearchVo deviceCategorySearchVo);

}